package org.cyb.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.cyb.demo.domain.Chapter;
import org.cyb.demo.domain.Course;

import java.util.List;

public interface ChapterMapper {
    int insert(
            @Param("chapter")Chapter chapter,
            @Param("course")Course course
    );

    void delete(
            @Param("chapter")Chapter chapter
    );

    void update(
            @Param("chapter")Chapter chapter
    );

    List<Chapter> selectByName(
            @Param("chapter")Chapter chapter
    );

    List<Chapter> selectAll();

    Chapter selectOneById(
            @Param("chapter")Chapter chapter
    );
}
